home *** CD-ROM | disk | FTP | other *** search
- @echo off
- if exist %0\..\toolslib.exe call %0\..\setpath
- exmain %0 %1 %2
- print "?n;<exmain compiler>?n;?n;"
- set source=%1
- if ("%1"=="") {
- echo usage: compile souce-name [object-name]
- end
- }
- if not exist %source% set source=%1.bat
- if (!exist "%source%") {
- echo Source file does not exist.
- end
- }
- toolslib exmain "%source%"
- if errorlevel 2 end
- call %tmpfile0%
- set object=%2
- if "%object%"=="" set object=%1(obj).bat
- type %cmdline% > %object%
- echo The %source% was compiled to create a object "%object%".
- if exist %cmdline% del %cmdline%
- echo.
- set source=
- set object=
-